package cn.qin.Actions;

import org.apache.commons.io.filefilter.FalseFileFilter;
import org.apache.struts2.json.annotations.JSON;
import org.json.JSONException;

import net.sf.json.JSONArray;
import cn.qin.DAO.impl.newsOperateDAOimpl;
import cn.qin.Models.NEWS;
import cn.qin.Services.newsServices;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class showHotActions extends ActionSupport {

	newsServices newsservices = new newsServices();
	JSONArray JSON = new JSONArray();


	public String execute() {
		return Action.SUCCESS;
	}
	
	@JSON(name="news")
	public JSONArray getJSON() throws JSONException {
		return newsservices.showHot();	
	}
	public void setJSON(JSONArray jSON) {
		this.JSON = jSON;
	}
	@JSON(serialize=false)
	public newsServices getNewsservices() {
		return newsservices;
	}

	public void setNewsservices(newsServices newsservices) {
		this.newsservices = newsservices;
	}
	
}
